import {request} from '@/plugins/axios'

//分页查询 列表
export function getAssetsPage(data, pageNum, pageSize) {
    return request({
        url: '/assets/page?pageNum='+pageNum+'&pageSize='+pageSize,
        method: 'post',
        data:data
    })
}

//新增
export function saveAssetsApi(data) {
    return request({
        url: '/assets/saveAssets',
        method: 'post',
        data:data
    })
}

//修改
export function updateAssetsApi(data) {
    return request({
        url: '/assets/updateAssets',
        method: 'put',
        data:data
    })
}

//删除
export function deleteAssetsApi(id) {
    return request({
        url: `/assets/deleteAssets/${id}`,
        method: 'delete',
    })
}